<?php

/**
 * Created by PhpStorm.
 * User: Leng
 * Date: 2017/8/1
 * Time: 0:07
 */
namespace Core;

class FrameCore
{
    static function start(){
        /*自动加载函数*/
        spl_autoload_register('\Core\FrameCore::autoload');
        RouteCore::route();
    }


    static function autoload($class){
        require_once SYSTEM_PATH.'/Core/Library/'.str_replace('\\', '/', $class).FILE_EXTENDS;
    }

}